package com.mediacloud.app.newsmodule.fragment.baoliao.model;

import com.luck.picture.lib.entity.LocalMedia;

/**
 * @author TXL
 * description :
 */
public class LocalMediaWithState {
    /**
     * 上传状态，true上传完成，否则false
     * */
    private boolean state;
    private int progress;
    private LocalMedia localMedia;

    public int flag = 0;//0代表为普通媒体文件，1代表选择图片，2代表选择视频

    public int getImgBackgroundRes() {
        return imgBackgroundRes;
    }

    public void setImgBackgroundRes(int imgBackgroundRes) {
        this.imgBackgroundRes = imgBackgroundRes;
    }

    private  int imgBackgroundRes;

    public LocalMediaWithState(LocalMedia localMedia) {
        this.localMedia = localMedia;
        state = false;
    }
    public LocalMediaWithState() {

    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public LocalMedia getLocalMedia() {
        return localMedia;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }
}